package com.pktechan.api.service;

import com.pktechan.api.base.BaseService;
import com.pktechan.api.entity.CustCarriageFlow;
import com.pktechan.api.vo.CustCarriageFlowVO;

import java.util.List;

public interface CustCarriageFlowService extends BaseService<CustCarriageFlow> {

    /**
     * 根据订单ID查询应得的运费流水
     *
     * @param tradeOrderId
     * @return
     */
    List<CustCarriageFlow> getGenerateListByTradeOrderId(Integer tradeOrderId);

    /**
     * 查看运费流水
     * @param custId
     * @return
     */
    List<CustCarriageFlowVO> getCustCarriageFlowList(Integer custId);

    /**
     * 运费提现申请
     * @param custCarriageFlow
     */
    void freightWithdrawalApply(CustCarriageFlow custCarriageFlow);

    /**
     * 根据custId获取运费兑付流水
     * @param custCarriageFlow
     * @return
     */
    List<CustCarriageFlow> getCarriageWithdrawalFlowList(CustCarriageFlow custCarriageFlow);
}
